package com.geguol.service;

import com.geguol.domain.Girl;
import com.geguol.properties.GirlProperties;
import com.geguol.repository.GirlRepository;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 作者：13687
 * 日期：2017/7/28
 * 项目：telcom
 * 描述：
 */
@Service
public class GirlService {

//	引入Dao

	@Autowired
	private GirlRepository girlRepository;

	public void insertTwo(){
		Girl girl = new Girl();
		girl.setAge(18);
		girl.setCupSize("B");
		girlRepository.save(girl);
	}


	public Integer getAge(Integer id){

		return 1;

	}

	public Girl findOneGirl(Integer id){
		return null;
	}
}
